-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
82 lines (80 loc) · 1.78 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
82
version: "3.5"
services:
portal:
image: ${DOCKER_IMAGE_LATEST}
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORTAL_PORT}"]
timeout: 10s
retries: 3
env_file:
- .env
volumes:
- .:/project
- ./media:/media
- static:/static
ports:
- "127.0.0.1:8890:${PORTAL_PORT}"
entrypoint: ["python3", "manage.py"]
command: ["runserver", "0.0.0.0:${PORTAL_PORT}"]
depends_on:
- mysql
referenceapi:
image: docker.chameleoncloud.org/referenceapi:latest
ports:
- "127.0.0.1:8891:8000"
mysql:
image: mariadb:10
volumes:
- ./db:/docker-entrypoint-initdb.d
restart: on-failure
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 10s
retries: 10
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "127.0.0.1:3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "127.0.0.1:8889:80"
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
depends_on:
- mysql
redis:
image: redis:alpine
celery:
image: ${DOCKER_IMAGE_LATEST}
restart: on-failure
entrypoint: ["celery"]
command:
["-A", "chameleon", "worker", "-l", "INFO", "--concurrency=1", "-B"]
env_file:
- .env
volumes:
- .:/project
depends_on:
- mysql
- redis
vue:
image: node:16.20.2
command: sh -c 'yarn && yarn serve'
working_dir: /project
volumes:
- .:/project
ports:
- "127.0.0.1:9000:9000"
mail:
image: mailhog/mailhog:latest
restart: always
ports:
- "127.0.0.1:8025:8025"
volumes:
static: