-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.07 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
version: "3.3"
networks:
scb10x-test-network:
external:
name: scb10x-test-network
services:
scb10x-test-web:
container_name: scb10x-test-web
build:
context: ./
dockerfile: ./docker/web/Dockerfile
ports:
- "3000:3000"
networks:
- scb10x-test-network
stdin_open: true
scb10x-test-backend:
container_name: scb10x-test-backend
build:
context: ./
dockerfile: ./docker/backend/Dockerfile
volumes:
- "./backend:/usr/src"
environment:
POSTGRES_USER: scb10x
POSTGRES_PASSWORD: scb10x-test
POSTGRES_DB: scb10x
POSTGRES_HOST: scb10x-test-db
JWT_SECRET: scb10x-secret
ports:
- "5000:5000"
depends_on:
- scb10x-test-db
networks:
- scb10x-test-network
scb10x-test-db:
container_name: scb10x-test-db
build:
context: ./
dockerfile: ./docker/db/Dockerfile
environment:
POSTGRES_USER: scb10x
POSTGRES_PASSWORD: scb10x-test
POSTGRES_DB: scb10x
ports:
- "5432:5432"
networks:
- scb10x-test-network