-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 1.08 KB
/
docker-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
services:
mydb:
image: mydb:2
environment:
- MYSQL_ROOT_PASSWORD=${WSHP_MARIADB_ROOT_PASSOWRD}
- MYSQL_USER=${WSHP_MARIADB_USER}
- MYSQL_PASSWORD=${WSHP_MARIADB_PASSWORD}
volumes:
- /etc/db/:/var/lib/mysql
networks:
- app-network
server:
image: server:2
environment:
- DB_HOST=mydb
- DB_USER_PASSWORD=${WSHP_MARIADB_PASSWORD}
- DB_USER=${WSHP_MARIADB_USER}
# Use this variable with mysql server with no certs, don't use it at all with managed mysql server:
- IS_MYSQL_SSL=noMysqlSSL
# ports:
# - "5000:5000"
networks:
- app-network
web:
image: web
# ports:
# - "80:8080"
depends_on:
- server
networks:
- app-network
nginx:
image: nginx
container_name: nginx-reverse-proxy
depends_on:
- mydb
- web
- server
ports:
- "80:80"
- "443:443"
volumes:
- ~/reverse-proxy.conf:/etc/nginx/nginx.conf
- ~/certs/:/etc/nginx/certs
networks:
- app-network
networks:
app-network:
external: true