-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.production.yml
61 lines (61 loc) · 1.65 KB
/
docker-compose.production.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
61
version: '2.1'
services:
postgresql:
container_name: postgresql_cso2
image: postgres:12.4-alpine
hostname: postgresql
environment:
POSTGRES_USER: cso2_user
POSTGRES_PASSWORD: cso2
POSTGRES_DB: cso2
ports:
- 5432
volumes:
- ./db:/var/lib/postgresql/data
- ./config/db:/docker-entrypoint-initdb.d
master-server:
container_name: cso2-master-server
image: cso2-master-server
hostname: master-server
build: ./master-server
restart: always
environment:
NODE_ENV: production
USERSERVICE_HOST: users-service
USERSERVICE_PORT: 30100
ports:
- 30001:30001
- 30002:30002/udp
depends_on:
- users-service
users-service:
container_name: cso2-users-service
image: cso2-users-service
hostname: users-service
build: ./users-service
restart: always
environment:
NODE_ENV: production
USERS_PORT: 30100
DB_HOST: postgresql
DB_PORT: 5432
DB_NAME: cso2
ports:
- 30100
depends_on:
- postgresql
website:
container_name: cso2-website
image: cso2-website
hostname: website
build: ./website
restart: always
environment:
NODE_ENV: production
WEBSITE_PORT: 8080
USERSERVICE_HOST: users-service
USERSERVICE_PORT: 30100
ports:
- 8080:8080
depends_on:
- users-service