-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.03 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
version: '3.7'
services:
yasm_client:
build:
context: client
dockerfile: Dockerfile
container_name: yasm_client
env_file:
- firebase.env
ports:
- '3000:3000'
volumes:
- ./client:/client
- /client/node_modules
networks:
- yasm_net
depends_on:
- yasm_server
yasm_server:
build:
context: server
dockerfile: Dockerfile
container_name: yasm_server
env_file:
- server.env
- algolia.env
- firebase-admin.env
ports:
- '5000:5000'
volumes:
- ./server:/server
- /server/node_modules
networks:
- yasm_net
depends_on:
- yasm_postgres
yasm_postgres:
image: postgres
container_name: yasm_postgres
restart: always
ports:
- '5432:5432'
- '127.0.0.1:8888:5432'
env_file:
- postgres.env
volumes:
- yasm_postgres:/var/lib/postgresql/data
networks:
- yasm_net
networks:
yasm_net:
name: yasm_net
volumes:
yasm_postgres:
driver: local