-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (71 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
72 lines (71 loc) · 1.6 KB
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
version: '3'
services:
postgres:
container_name: postgres
image: postgres
environment:
- POSTGRES_PASSWORD=insight_password
- POSTGRES_USER=insight
- POSTGRES_DB=insight
ports:
- 5432:5432
networks:
- net_insight
volumes:
- ./postgres-data:/var/lib/postgresql/data
adminer:
container_name: adminer
image: adminer
depends_on:
- postgres
environment:
- ADMINER_DEFAULT_DB_DRIVER=pgsql
- ADMINER_DEFAULT_DB_HOST=postgres
- ADMINER_DEFAULT_DB_NAME=adminer
ports:
- 8080:8080
networks:
- net_insight
restart: always
front-insight:
image: nginx:alpine
ports:
- 3000:80
volumes:
- ./front-insight:/usr/share/nginx/html
back-insight:
build:
context: back-insight
dockerfile: ./Dockerfile
environment:
- NODE_ENV=docker
- DATABASE_HOST=postgres
- DATABASE_DB=insight
- DATABASE_USER=insight
- DATABASE_PASSWORD=insight_password
ports:
- 3030:8000
volumes:
- ./back-insight:/opt/back-insight
- /opt/back-insight/node_modules/
networks:
- net_insight
cron-insight:
build:
context: back-insight
dockerfile: ./Dockerfile
environment:
- NODE_ENV=docker
- CRON_INSIGHT=true
- DATABASE_HOST=postgres
- DATABASE_DB=insight
- DATABASE_USER=insight
- DATABASE_PASSWORD=insight_password
volumes:
- ./back-insight:/opt/back-insight
- /opt/back-insight/node_modules/
networks:
- net_insight
networks:
net_insight:
driver: bridge