-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 988 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 988 Bytes
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
version: "3.3"
services:
db:
image: postgres:12
ports:
- "5432:5432"
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- src/app/.env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
pgadmin:
ports:
- "5050:5050"
image: dpage/pgadmin4
depends_on:
- db
env_file:
- src/app/.env
redis:
image: redis:7.0
ports:
- "6379:6379"
backend:
ports:
- "8080:80"
volumes:
- ./src/app:/app
environment:
- DEV_MODE=true
- SERVER_HOST=http://${DOMAIN?Variable not set}
image: '${DOCKER_IMAGE?Variable not set}:${DOCKER_TAG-latest}'
depends_on:
- db
- redis
env_file:
- src/app/.env
build:
context: .
dockerfile: dist/app/app.Dockerfile
# command: bash -c "while true; do sleep 1; done" # Infinite loop to keep container live doing nothing
command: /start.sh
volumes:
app-db-data: