-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) · 1.3 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
version: '3.8'
services:
api:
container_name: mnemosyne-api
restart: always
env_file:
- ./mnemosyne-web-interface/.env.${NODE_ENV}
build:
context: .
dockerfile: ./mnemosyne-infrastructure/api/Dockerfile
command: npm run start:dev
volumes:
- ./mnemosyne-web-interface/mnemosyne-api:/usr/src/mnemosyne-api
ports:
- ${API_PORT}:${API_PORT}
depends_on:
- api-proxy
networks:
- mnemosyne-network
api-proxy:
container_name: mnemosyne-api-proxy
restart: always
env_file:
- ./mnemosyne-web-interface/.env.${NODE_ENV}
build:
context: .
dockerfile: ./mnemosyne-infrastructure/api-proxy/Dockerfile
command: npm run start:dev
volumes:
- ./mnemosyne-web-interface/mnemosyne-api-proxy:/usr/src/mnemosyne-api-proxy
ports:
- ${PROXY_PORT}:${PROXY_PORT}
depends_on:
- database
networks:
- mnemosyne-network
database:
image: postgres:latest
container_name: mnemosyne-db
restart: always
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
volumes:
- /:/data/postgres
networks:
- mnemosyne-network
networks:
mnemosyne-network:
driver: bridge