-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 914 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
version: '3.1'
services:
db:
image: mariadb
container_name: mydb
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: askbot
MYSQL_USER: askbot
MYSQL_PASSWORD: askbot
tty: false
stdin_open: false
proxy:
image: nginx
container_name: proxy
restart: always
volumes:
- ./conf/proxy.conf:/etc/nginx/nginx.conf:ro
- ./conf/cert.crt:/etc/nginx/cert.crt:ro
- ./conf/cert.key:/etc/nginx/cert.key:ro
depends_on:
- "qa"
ports:
- "80:80"
- "443:443"
qa:
build:
context: .
dockerfile: Dockerfile
args:
SRC_DIR: .
container_name: askbot
depends_on:
- "db"
# ports:
# - "81:80"