-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
81 lines (81 loc) · 1.72 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
services:
web:
container_name: dev
image: browserstack/enigma:v1
build:
context: .
dockerfile: Dockerfile
target: web
args:
APPUID: ${APPUID}
env_file:
- ./secrets/ops_app_dev.env
volumes:
- ./:/srv/code/dev
- ./mounts/modules_web:/srv/code/dev/Access/access_modules
- ./mounts/db:/srv/code/dev/db
- ./mounts/logs:/ebs/logs
ports:
- 8000:8000
depends_on:
- db
db:
container_name: db
image: mysql/mysql-server:8.0.31
ports:
- 3306:3306
env_file:
- ./secrets/ops_mysql_dev.env
volumes:
- ./mounts/mysql_db:/var/lib/mysql
security_opt:
- no-new-privileges:true
redis:
container_name: redis
image: redis:alpine
command: --port 6379
ports:
- 6379:6379
read_only: true
security_opt:
- no-new-privileges:true
celery:
container_name: celery
build:
context: .
dockerfile: Dockerfile
target: web
args:
APPUID: ${APPUID}
volumes:
- ./mounts/modules_celery:/srv/code/dev/Access/access_modules
- ./mounts/db:/srv/code/dev/db
- ./mounts/logs:/ebs/logs
env_file:
- ./secrets/ops_app_celery.env
depends_on:
- db
- redis
- web
command: >
/bin/bash -c "
while ! nc -z redis 6379;
do
echo sleeping;
sleep 1;
done;
echo Connected!;
echo Starting celery;
python3 -m celery -A EnigmaAutomation worker -n worker1 -l DEBUG"
test:
container_name: test
build:
context: .
dockerfile: Dockerfile
target: test
env_file:
- ./secrets/ops_app_test.env
volumes:
- .:/srv/code/dev
- ./mounts/logs:/ebs/logs