-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
59 lines (53 loc) · 1023 Bytes
/
docker-compose-dev.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
51
52
53
54
55
56
57
58
59
version: '3'
services:
app:
build:
context: .
dockerfile: ./build/app.Dockerfile
restart: unless-stopped
networks:
- app-network
- postgres
environment:
- POSTGRES_USER
- POSTGRES_DB
- POSTGRES_PASSWORD
- CAPTCHA_SITE_KEY
- CAPTCHA_SECRET_KEY
ports:
- 8080:8080
db:
image: postgres
restart: always
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_DB
- POSTGRES_PASSWORD
ports:
- 5432:5432
networks:
- postgres
adminer:
image: adminer
restart: always
networks:
- postgres
ports:
- 9000:9000
nginx:
image: nginx:1.15-alpine
restart: unless-stopped
volumes:
- ./conf/nginx-dev.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
command: "nginx -g 'daemon off;'"
networks:
- app-network
networks:
postgres:
driver: bridge
app-network:
driver: bridge