-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·56 lines (52 loc) · 1.09 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
version: "3.9"
services:
database:
container_name: database
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: instaccounts
volumes:
- ./packages/server/src/db/data:/var/lib/postgresql/data/
ports:
- 5432:5432
restart: always
networks:
- database
server:
container_name: server
build:
context: ./packages/server
dockerfile: Dockerfile
volumes:
- ./packages/server/node_modules:/app/node_modules
- ./packages/server/src:/app/src
depends_on:
- database
ports:
- 1000:1000
restart: always
networks:
- database
- webapp
web:
container_name: web
build:
context: ./packages/web
dockerfile: Dockerfile
volumes:
- ./packages/web/node_modules:/app/node_modules
- ./packages/web/src:/app/src
- ./packages/web/public:/app/public
ports:
- 2000:2000
restart: always
networks:
- database
- webapp
networks:
webapp:
driver: bridge
database:
driver: bridge