forked from wilo087/pethome_raffle_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 863 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
version: "3.7"
services:
pethome_raffle:
networks:
- app-network
volumes:
- .:/usr/src/app
build: .
container_name: pethome_raffle_backend
image: pethome/pethome_raffle
depends_on:
- postgres
ports:
- "5000:5000"
postgres:
image: postgres:11.2-alpine
container_name: pethome_raffle_postgres
environment:
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- ./script.sql:/docker-entrypoint-initdb.d/script.sql
- ./postgres-data:/var/lib/postgresql/data
webserver:
image: nginx:mainline-alpine
container_name: webserver
restart: unless-stopped
volumes:
- ./nginx:/etc/nginx/conf.d
depends_on:
- pethome_raffle
ports:
- "80:80"
networks:
- app-network
networks:
app-network:
driver: bridge