-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.06 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
57
58
59
60
version: "3"
services:
builder:
container_name: oauth_builder
restart: always
build: ./
volumes:
- ./backend:/app
networks:
- oauth
command: sh -c "npm i && npm run dev"
backend:
container_name: oauth_backend
restart: always
build: ./
depends_on:
- builder
ports:
- 3345:3333
volumes:
- ./backend:/app
- ./docker/tmp/logs/:/usr/src/app/error.log
networks:
- oauth
command: ["pm2-runtime", "process.json"]
frontend:
build: ./
container_name: oauth_frontend
restart: always
volumes:
- ./frontend:/app
ports:
- 3000:3333
networks:
- oauth
command: sh -c "npm i && npm run dev"
postgres:
image: postgres
container_name: oauth_pgsql
restart: always
volumes:
- oauth_data:/var/lib/postgresql/data:rw
environment:
- POSTGRES_PASSWORD=oauth
- POSTGRES_USER=oauth
- POSTGRES_DB=oauth
ports:
- 5432:5432
networks:
- oauth
volumes:
oauth_data:
networks:
oauth: