forked from YACS-RCOS/yacs.n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (27 loc) · 770 Bytes
/
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
version: "3.4"
# web (front-end) depends on api (back-end) depends on (db)
# web -> api -> db [dependency chain]
# NOTE: env vars are in docker-compose.development.yml or docker-compose.production.yml depending on env
services:
yacs_web:
restart: unless-stopped
container_name: yacs_web # makes logs nicer, otherwise would be yacs_web_1, but is yacs_web
build:
context: ./src/web
dockerfile: Dockerfile
depends_on:
- yacs_api
yacs_api:
restart: unless-stopped
container_name: yacs_api
stdin_open: true
tty: true
build:
context: ./src/api/
dockerfile: Dockerfile
depends_on:
- yacs_db
yacs_db:
restart: unless-stopped
container_name: yacs_db
image: postgres:12-alpine