-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.01 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
version: '3.8'
services:
api:
build: .
command:
- "/usr/src/app/start.sh"
image: observerly/perseus:latest
container_name: observerly_perseus
restart: always
ports:
- 8001:5000
volumes:
- ./:/usr/src/app
depends_on:
- db
- redis
links:
- redis:redis
env_file:
- .env
networks:
- api
db:
image: mysql
container_name: mysql
restart: always
ports:
- 3306:3306
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- web
redis:
image: redis:alpine
container_name: redis
command: redis-server --appendonly yes
expose:
- 6379
restart: always
networks:
- api
volumes:
db:
driver: local
networks:
web:
name: web
api:
name: api
driver: bridge