generated from dipeshdulal/clean-gin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 864 Bytes
/
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
version: "3.3"
services:
web:
build:
context: .
dockerfile: ./docker/web.Dockerfile
ports:
- ${SERVER_PORT}:${SERVER_PORT}
- ${DEBUG_PORT}:2345
volumes:
- .:/clean_web
env_file: .env
security_opt:
- seccomp:unconfined
depends_on:
- database
database:
build:
context: .
dockerfile: ./docker/db.Dockerfile
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASS}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_ROOT_HOST: "%"
command:
[
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password",
]
ports:
- 33068:3306
volumes:
- clean_db:/var/lib/mysql
adminer:
image: adminer
ports:
- ${ADMINER_PORT}:8080
volumes:
clean_db: