-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (71 loc) · 1.39 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "2"
services:
nginx:
image: nginx:alpine
container_name: budget_nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certificates:/etc/certificates
links:
- budget:budget
networks:
- net_budget_dev
ports:
- ${PORT}:80
- ${PORT_SECURE}:443
env_file:
- .env
budget:
container_name: budget
build:
context: .
depends_on:
- base
volumes:
- .:/app
- /app/node_modules
links:
- db:db
networks:
- net_budget_dev
expose:
- 3000
ports:
- 9229:9229
env_file:
- .env
environment:
NODE_ENV: development
DEBUG: ${DEBUG}
SKIP_APP: ${SKIP_APP}
PORT: 3000
DATABASE_URL: postgres://docker:docker@db:5432/budget
REDIS_HOST: redis
REDIS_PORT: 6379
DEFAULT_PIN: 1234
base:
image: docker.fela.space/budget_base:latest
build:
context: .
db:
restart: always
image: postgres:10-alpine
networks:
- net_budget_dev
ports:
- ${DB_PORT_BUDGET_DEV:-5432}:5432
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
restart: always
image: redis:6-alpine
networks:
- net_budget_dev
ports:
- 6380:6379
networks:
net_budget_dev:
driver: bridge