-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 831 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (48 loc) · 831 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
version: "3"
services:
api:
build:
context: .
dockerfile: Dockerfile
image: vapor-composer-image
environment:
SLEEP_LENGTH: 5
POSTGRES_HOST: db
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
REDIS_HOST: redis
depends_on:
- "db"
- "redis"
networks:
- db_nw
- api_nw
db:
image: postgres
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
networks:
- db_nw
redis:
image: redis:alpine
networks:
- db_nw
nginx:
image: nginx:latest
volumes:
- ./conf.d:/etc/nginx/conf.d
ports:
- 80:80
- 443:443
depends_on:
- api
networks:
- api_nw
networks:
db_nw:
driver: bridge
api_nw:
driver: bridge