-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (58 loc) · 1.1 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
version: '3'
services:
server:
build:
context: ./server
dockerfile: ./Dockerfile
ports:
- "${AREA_SERVER_PORT}:8080"
networks:
- server-network
depends_on:
- db
restart: always
client_web:
build:
context: ./webapp
dockerfile: ./Dockerfile
ports:
- "${AREA_CLIENT_WEB_PORT}:80"
volumes:
- common-data:/common-data
depends_on:
- server
restart: always
client_mobile:
build:
context: ./mobile
dockerfile: ./Dockerfile
volumes:
- common-data:/common-data
restart: always
db:
image: postgres:12.0-alpine
logging:
driver: "json-file"
options:
max-size: 1G
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=pacome35220
- POSTGRES_PASSWORD=mdr
volumes:
- db-data:/var/lib/postgres/data
networks:
- server-network
restart: always
docs:
build:
context: ./docs
dockerfile: ./Dockerfile
ports:
- "1343:8080"
restart: always
networks:
server-network:
volumes:
db-data:
common-data: