Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
127 lines (121 loc) · 3.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
127 lines (121 loc) · 3.14 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
services:
frontend:
build:
context: frontend/docker
dockerfile: development/nginx/Dockerfile
ports:
- 20080:80
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
# Mount source-code for development
- ./:/app
environment:
APP_ENV: dev
APP_DEBUG: 0
FRONTEND_NAME: App Frontend
DB_DSN_PREFIX: pgsql
DB_HOST: postgres
DB_NAME: app
DB_USER: app
DB_PASSWORD_FILE: /run/secrets/app_db_password
COOKIE_DOMAIN: ""
FRONTEND_URL: https://gmtx.ru
BACKEND_URL: https://cp.gmtx.ru
STATIC_URL: https://static.gmtx.ru
MAILER_FROM_EMAIL: support@audetv.ru
MAILER_FROM_NAME: application
MAILER_HOST: mailer
MAILER_PORT: 1025
MAILER_USERNAME: app
MAILER_PASSWORD_FILE: /run/secrets/app_mailer_password
MAILER_ENCRYPTION: tls
MANTICORE_HOST: ${MANTICORE_HOST}
MANTICORE_PORT: ${MANTICORE_PORT}
MANTICORE_API_KEY: ${MANTICORE_API_KEY}
secrets:
- app_db_password
- app_mailer_password
networks:
- gmtx_net
backend:
build:
context: backend/docker
dockerfile: development/nginx/Dockerfile
ports:
- 21080:80
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
# Mount source-code for development
- ./:/app
environment:
APP_ENV: dev
APP_DEBUG: 0
BACKEND_NAME: App Backend
DB_DSN_PREFIX: pgsql
DB_HOST: postgres
DB_NAME: app
DB_USER: app
DB_PASSWORD_FILE: /run/secrets/app_db_password
COOKIE_DOMAIN: ""
FRONTEND_URL: https://gmtx.ru
BACKEND_URL: https://cp.gmtx.ru
STATIC_URL: https://static.gmtx.ru
MAILER_FROM_EMAIL: mail@localhost
MAILER_FROM_NAME: application
MAILER_HOST: mailer
MAILER_PORT: 1025
MAILER_USERNAME: app
MAILER_PASSWORD_FILE: /run/secrets/app_mailer_password
MAILER_ENCRYPTION: tls
MANTICORE_HOST: ${MANTICORE_HOST}
MANTICORE_PORT: ${MANTICORE_PORT}
MANTICORE_API_KEY: ${MANTICORE_API_KEY}
secrets:
- app_db_password
- app_mailer_password
networks:
- gmtx_net
static:
image: nginx:alpine
ports:
- 22080:80
volumes:
- /mnt/work/gmtx/static:/usr/share/nginx/html:ro
networks:
- gmtx_net
postgres:
image: postgres:17-alpine
environment:
APP_ENV: dev
POSTGRES_USER: app
POSTGRES_DB: app
POSTGRES_PASSWORD_FILE: /run/secrets/app_db_password
secrets:
- app_db_password
volumes:
- /mnt/work/gmtx/postgres:/var/lib/postgresql/data
ports:
- "54321:5432"
networks:
- gmtx_net
mailer:
image: mailhog/mailhog
ports:
- 1025:8025
networks:
- gmtx_net
secrets:
app_db_password:
file: ./secrets/development/app_db_password
app_mailer_password:
file: ./secrets/development/app_mailer_password
networks:
gmtx_net:
name: gmtx_net
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
external: true