-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
137 lines (127 loc) · 3.42 KB
/
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
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
128
129
130
131
132
133
134
135
136
137
services:
proxy:
container_name: proxy
image: nginxproxy/nginx-proxy:1.5
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
aliases:
- api.local.olcs.dev-dvsacloud.uk
- ssweb.local.olcs.dev-dvsacloud.uk
- iuweb.local.olcs.dev-dvsacloud.uk
- cdn.local.olcs.dev-dvsacloud.uk
api:
build:
context: infra/docker/api
target: development
expose:
- 8080
volumes:
- ./app/api:/var/www/html
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY-}
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN-}
PHP_IDE_CONFIG: "serverName=vol.local.api"
VIRTUAL_HOST: api.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 8080
cli:
build:
context: infra/docker/cli
target: development
tty: true
volumes:
- ./app/api:/var/www/html
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY-}
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN-}
PHP_IDE_CONFIG: "serverName=vol.local.api"
selfserve:
build:
context: infra/docker/selfserve
target: development
expose:
- 8080
volumes:
- ./app/selfserve:/var/www/html
environment:
ELASTICACHE_URL: tcp://redis:6379
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY-}
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN-}
PHP_IDE_CONFIG: "serverName=vol.local.selfserve"
VIRTUAL_HOST: ssweb.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 8080
internal:
build:
context: infra/docker/internal
target: development
expose:
- 8080
volumes:
- ./app/internal:/var/www/html
environment:
ELASTICACHE_URL: tcp://redis:6379
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID-}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY-}
AWS_SESSION_TOKEN: ${AWS_SESSION_TOKEN-}
PHP_IDE_CONFIG: "serverName=vol.local.internal"
VIRTUAL_HOST: iuweb.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 8080
cdn:
image: node:20
volumes:
- ./app/cdn:/var/www/html
working_dir: /var/www/html
command: bash -c "npm install && npm start"
expose:
- 7001
environment:
VIRTUAL_HOST: cdn.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 7001
redis:
image: redis:7
expose:
- 6379
db:
image: mysql:8.0
command: --log_bin_trust_function_creators=1 --sql_mode=NO_ENGINE_SUBSTITUTION
volumes:
- db-data:/var/lib/mysql
- ${OLCS_ETL_DIR:-../olcs-etl}:/var/lib/etl
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: olcs
MYSQL_DATABASE: olcs_be
MYSQL_USER: mysql
MYSQL_PASSWORD: olcs
extra_hosts:
- "host.docker.internal:host-gateway"
openldap:
image: bitnami/openldap:2.6
ports:
- "1389:1389"
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=admin
- LDAP_ROOT=dc=vol,dc=dvsa
- LDAP_ADMIN_DN=cn=admin,dc=vol,dc=dvsa
volumes:
- "openldap-data:/bitnami/openldap"
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "1025:1025"
- "8025:8025"
environment:
VIRTUAL_HOST: mailpit.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 8025
volumes:
db-data:
openldap-data: