-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.16 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
services:
composer:
image: composer:latest
working_dir: /app
volumes:
- .:/app
command: ["composer", "update"]
# postgres:
# image: postgres:latest
# container_name: postgres
# restart: always
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# volumes:
# - ./postgres:/var/lib/postgresql/data
# mysql:
# image: mysql:latest
# container_name: mysql
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD=password
# volumes:
# - ./mysql:/var/lib/mysql
redis:
image: redis:latest
container_name: redis
restart: always
volumes:
- ./redis:/data
command: redis-server --save 60 1 --loglevel warning
bot:
image: hub.madelineproto.xyz/danog/madelineproto
container_name: bot
depends_on:
composer:
condition: service_completed_successfully
# postgres:
# condition: service_started
redis:
condition: service_started
restart: always
working_dir: /app
tty: true
volumes:
- .:/app
ports:
- 8000:8000
command: ["php", "run.php"]