-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1006 Bytes
/
docker-compose.yml
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
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
depends_on:
- "db"
env_file:
- .env
command: "python ./main.py"
networks:
- nginx-load-balancer
- internal
restart: always
webpack:
build:
context: "."
dockerfile: "Dockerfile-webpack"
volumes:
- .:/app
networks:
- internal
# Use this to keep the container running
tty: true
restart: always
db:
image: "postgres:13-alpine"
volumes:
- "db:/var/lib/postgresql/data"
- "./postgres-dev-init.sh:/docker-entrypoint-initdb.d/postgres-dev.init.sh"
environment:
- POSTGRES_MULTIPLE_DATABASES=${POSTGRES_DB},${POSTGRES_DB}_test
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- internal
restart: always
volumes:
db: {}
networks:
internal:
nginx-load-balancer:
name: docker_nginx-load-balancer
external: true