-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
63 lines (57 loc) · 1.13 KB
/
compose.yml
File metadata and controls
63 lines (57 loc) · 1.13 KB
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
# Deployment for pre-production environment
volumes:
database:
services:
redis:
image: redis
mariadb:
image: mariadb
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=yes
- MARIADB_DATABASE=${DB_NAME}
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASS}
volumes:
- database:/var/lib/mysql
ports:
- "127.0.0.1:3306:3306"
api:
build:
context: .
dockerfile: Dockerfile
command: --log-level=info --workers=6
image: ghcr.io/laboinfra/fob-api:${VERSION}
env_file:
- .env
environment:
- APP=api
ports:
- "127.0.0.1:8085:8000"
depends_on:
- redis
- mariadb
worker:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/laboinfra/fob-api:${VERSION}
env_file:
- .env
environment:
- APP=worker
depends_on:
- redis
- mariadb
beat:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/laboinfra/fob-api:${VERSION}
command: --loglevel=debug
env_file:
- .env
environment:
- APP=beat
depends_on:
- redis
- mariadb