-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
57 lines (53 loc) · 1.12 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
services:
db:
image: mysql:8.0
container_name: db
platform: linux/amd64
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=dev
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nettside-dev
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password
web: &web
build:
context: .
dockerfile: compose/Dockerfile
target: dev
env_file:
- ./.envs/.local
image: web
container_name: web
restart: on-failure
platform: linux/amd64
volumes:
- .:/usr/src/
ports:
- "8000:8000"
depends_on:
- db
celery:
<<: *web
image: celery
container_name: celery
entrypoint: []
command: celery --app app worker --task-events --beat --loglevel info
ports: []
rabbitmq:
image: rabbitmq:3.9.13
container_name: rabbitmq
ports:
- 5672:5672