-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (55 loc) · 1 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3"
services:
infrarays-api:
container_name: infrarays-api
build:
context: .
ports:
- "8080:80"
expose:
- "80"
networks:
- infrarays
depends_on:
- psql
- redis
links:
- psql
- redis
env_file: .docker.env
restart: "no"
# volumes:
# - infrarays-api-data:/store
psql:
image: postgres
container_name: psql
restart: always
networks:
- infrarays
expose:
- 5432
ports:
- "5432:5432"
environment:
- POSTGRES_USER=infrarays
- POSTGRES_PASSWORD=infrarays_is_the_best
- POSTGRES_DB=infrarays
restart: "no"
# volumes:
# - psql-data:/var/lib/postgresql/data/
redis:
image: redis
container_name: redis
restart: always
command: ["redis-server", "--appendonly", "yes"]
networks:
- infrarays
expose:
- 6379
ports:
- "6379:6379"
restart: "no"
# volumes:
# - redis-data:/data
networks:
infrarays: