-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (106 loc) · 3.04 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# SPDX-FileCopyrightText: 2023 Magenta ApS <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
services:
pantportal:
user: "1000:1000" # Override in docker-compose.override.yml if local user is different
container_name: esani_pantportal
image: esani-pantportal:latest
build:
context: .
dockerfile: docker/Dockerfile
env_file:
- ./dev-environment/esani-pantportal.env
volumes:
- ./esani_pantportal/:/app
- ./dev-environment/cert:/ssl:ro
- ./data/qr_codes:/srv/media/qr_codes
- ./data/deposit_payouts:/srv/media/deposit_payouts
- ./data/er:/app/esani_pantportal/static/doc:ro
- ./data/startup_flags:/tmp
- ./data/log/pantportal.log:/var/log/pantportal.log:rw
depends_on:
- pantportal-db
environment:
- MAKE_MIGRATIONS=true
- MIGRATE=true
- TEST=false
- SKIP_IDP_METADATA=true
ports:
- "8000:8000"
networks:
- postgres
- sftp
command: gunicorn -b 0.0.0.0:8000 project.wsgi:application --reload -w 1 --access-logfile - --error-logfile - --capture-output # reload on code changes
pantportal-db:
container_name: pantportal-db
image: postgres:16
env_file:
- ./dev-environment/esani-pantportal.env
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- postgres
pantportal-cron:
user: "1000:1000" # Override in docker-compose.override.yml if your local user is different
container_name: pantportal-cron
image: esani-pantportal:latest
depends_on:
- pantportal-db
env_file:
- ./dev-environment/esani-pantportal.env
volumes:
- ./esani_pantportal/:/app
- ./dev-environment/logrotate.conf:/logrotate.conf:ro
- ./data/product_lists:/srv/media/product_lists
- ./dev-environment/crontab:/crontab
- ./data/log/cron.log:/var/log/pantportal.log:rw
- ./data/log/:/var/log:rw
networks:
- postgres
- sftp
entrypoint: [ ]
command: [ "supercronic", "/crontab" ]
pantportal-sftp:
image: atmoz/sftp
volumes:
- ./data/product_lists:/home/sftp_tomra/product_lists
- ./data/deposit_payouts:/home/sftp_tomra/deposit_payouts
- ./dev-environment/users.conf:/etc/sftp/users.conf
ports:
- "2222:22"
networks:
- sftp
mailhog:
container_name: mailhog
image: mailhog/mailhog
logging:
driver: 'none' # Disable saving logs
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP port
networks:
- postgres
pantportal-er:
user: "1000:1000" # Override in docker-compose.override.yml if your local user is different
container_name: pantportal-er
image: pantportal-er:latest
build:
context: .
dockerfile: docker/Dockerfile_er
depends_on:
- pantportal-db
env_file:
- ./dev-environment/esani-pantportal.env
volumes:
- ./data/er:/doc
- ./data/startup_flags:/tmp
networks:
- postgres
volumes:
postgres-data:
networks:
postgres:
name: postgres
sftp:
name: sftp