-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.26 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
version: "3"
services:
node:
restart: always
entrypoint: [sh, ./docker-entry.sh, "auth_mysql_db", "3306"]
build:
context: .
dockerfile: Dockerfile
volumes:
- /tmp/pm2
networks:
- authservice-network
ports:
- ${PORT}:${PORT}
depends_on:
- auth_mysql_db
auth_mysql_db:
image: mysql:5.7
restart: always
command: --innodb_use_native_aio=0
volumes:
- ./mysql-data:/var/lib/mysql
ports:
- ${DB_PORT}:3306
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_ROOT_USER: ${DB_USERNAME}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_HOST: ${DB_HOSTNAME}
networks:
- authservice-network
web:
build:
context: ./client
dockerfile: Dockerfile
networks:
- authservice-network
environment:
PORT: ${WEB_PORT}
PROXY_URL: http://node:${PORT}
WEB_PORT: ${WEB_PORT}
WEB_EXPOSED_PORT: ${WEB_EXPOSED_PORT}
HOSTNAME: ${HOST_HOSTNAME}
ports:
- ${WEB_PORT}:${WEB_PORT}
- ${WEB_EXPOSED_PORT}:${WEB_EXPOSED_PORT}
volumes:
- ${CERT_PATH}:/etc/ssl
depends_on:
- auth_mysql_db
entrypoint: [sh, /etc/nginx/run_nginx.sh, "${HOST_HOSTNAME}"]
networks:
authservice-network:
driver: bridge