-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (51 loc) · 1.15 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
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
container_name: boilerplate-web
depends_on:
- database
cloud-sql-proxy:
build:
context: .
dockerfile: ./docker/cloud.Dockerfile
ports:
- "33068:3306"
env_file:
- .env
volumes:
- ./serviceAccountKey.json:/secrets/cloudsql/serviceAccountKey.json:ro
container_name: cloud-sql-proxy
database:
build:
context: .
dockerfile: ./docker/db.Dockerfile
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
container_name: boilerplate-db
command:
[
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci",
"--default-authentication-plugin=mysql_native_password",
]
ports:
- 33066:3306
volumes:
- boilerplate_db:/var/lib/mysql
adminer:
image: adminer
ports:
- ${ADMINER_PORT}:8080
volumes:
boilerplate_db: