-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.04 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
networks:
nw: ~
services:
app:
container_name: rsyslog-app
build:
context: .
dockerfile: Dockerfile
target: dev
volumes:
- ./:/var/www
- ./docker/fpm-docker.conf:/usr/local/etc/php-fpm.d/fpm-docker.conf
networks:
- nw
nginx:
container_name: rsyslog-nginx
build:
context: .
dockerfile: Dockerfile
target: nginx
ports:
- "80:80"
# - "443:443"
volumes:
- ./:/var/www
- ./docker/nginx-default.conf:/etc/nginx/conf.d/default.conf
networks:
- nw
depends_on:
app:
condition: service_started
db:
container_name: rsyslog-db
build:
context: .
dockerfile: Dockerfile
target: db
ports:
- "3306:3306"
volumes:
- ./docker/db:/config
environment:
# TZ: Etc/UTC
MYSQL_DATABASE: Syslog
MYSQL_USER: rsyslog
MYSQL_PASSWORD: rsyslogpass
MYSQL_ROOT_PASSWORD: myrootpass
networks:
- nw
depends_on:
app:
condition: service_started