-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·56 lines (53 loc) · 1.23 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.8'
services:
backend:
extends:
file: ./server/docker-compose.yml
service: production
environment:
SERVER_HOST: $SERVER_HOST
networks: [app-network, server-network]
database:
extends:
file: ./server/docker-compose.yml
service: database
database-client:
extends:
file: ./server/docker-compose.yml
service: database-client
frontend:
extends:
file: ./client/docker-compose.yml
service: production
depends_on:
backend:
condition: service_healthy
volumes:
- $PWD/client/src:/usr/src/app/src
hostname: $FRONTEND_HOST
networks: [app-network]
environment:
SERVER_HOST: $SERVER_HOST
web-server:
build:
context: ./web-server
depends_on: [frontend]
ports: ["2000:2000"]
restart: unless-stopped
expose: ["2000"]
networks: [app-network]
environment:
BACKEND_HOST: $BACKEND_HOST
BACKEND_PORT: $BACKEND_PORT
FRONTEND_HOST: $FRONTEND_HOST
FRONTEND_PORT: $FRONTEND_PORT
volumes:
database-data:
name: database-data
database-client-data:
name: database-client-data
networks:
app-network:
name: app-network
server-network:
name: server-network