-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
60 lines (56 loc) · 1.18 KB
/
docker-compose.yaml
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
version: '3.8'
services:
ifsguid_nginx:
build: ./nginx
image: nginx:alpine
restart: unless-stopped
container_name: ifsguid_nginx
ports:
- "80:80"
volumes:
- "./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf:ro"
- "./nginx/static:/static:ro"
depends_on:
- ifsguid_app
logging:
driver: "json-file"
options:
max-size: "50m"
ifsguid_db:
image: postgres:15-alpine
restart: unless-stopped
expose:
- "5432"
ports:
- "5432:5432"
container_name: ifsguid_db
volumes:
- ifsguid-postgres-data:/var/lib/postgresql/data
logging:
driver: "json-file"
options:
max-size: "50m"
env_file:
- .env
ifsguid_app:
build: .
image: ifsguid:1.0.0
container_name: ifsguid_app
restart: unless-stopped
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "./nginx:/opt/nginx:rw"
env_file:
- ./.docker.env
expose:
- "8000"
depends_on:
- ifsguid_db
logging:
driver: "json-file"
options:
max-size: "50m"
volumes:
ifsguid-postgres-data:
driver: local