-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.docker-compose.yaml
50 lines (46 loc) · 1.26 KB
/
production.docker-compose.yaml
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
services:
client-app:
container_name: grafana-classroom-client-app
build:
context: ./client
dockerfile: Dockerfile
target: production
ports:
- ${CLIENT_APP_PORT}=${CLIENT_APP_PORT}
environment:
- PORT=${CLIENT_APP_PORT}
- NODE_ENV=${CLIENT_APP_NODE_ENV}
server-app:
container_name: grafana-classroom-server-app
build:
context: ./server
dockerfile: Dockerfile
target: production
ports:
- ${SERVER_APP_PORT}=${SERVER_APP_PORT}
environment:
- NODE_ENV=${SERVER_APP_NODE_ENV}
networks:
- database-connection
- docker-interface-connection
database:
container_name: grafana-classroom-database
# TODO: Pick one between MSSQL or PostgreSQL
docker-intf:
container_name: grafana-classroom-docker-intf
build:
context: ./grafana-prov/docker-intf
dockerfile: Dockerfile
target: production
environment:
- PORT=${DOCKER_INTERFACE_SERVER_PORT}
- SOCKET_BIND=${DOCKER_INTERFACE_SERVER_SOCKET_PATH}
volumes:
- /var/run/docker.sock:${DOCKER_INTERFACE_SERVER_SOCKET_PATH}
networks:
- docker-interface-connection
networks:
database-connection:
driver: bridge
docker-interface-connection:
driver: bridge