-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
68 lines (61 loc) · 1.58 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
62
63
64
65
66
67
68
version: '3'
services:
api.star-citizen.wiki:
image: scwiki/api:dev
container_name: api.star-citizen.wiki
restart: unless-stopped
security_opt:
- no-new-privileges:true
depends_on:
- db
links:
- db
expose:
- 80
environment:
APP_ENV: production
CONTAINER_ROLE: app
volumes:
- ./var/lib/api.star-citizen.wiki/storage:/var/www/html/storage/app
- ./var/lib/api.star-citizen.wiki/logs:/var/www/html/storage/logs
- ./.env:/var/www/html/.env
- /etc/localtime:/etc/localtime:ro
networks:
api.star-citizen.wiki:
internal:
labels:
- "traefik.enable=true"
- "traefik.docker.network=api.star-citizen.wiki"
- "traefik.http.routers.api-star-citizen.rule=Host(`api.star-citizen.wiki`)"
- "traefik.http.routers.api-star-citizen.entryPoints=https"
- "traefik.http.routers.api-star-citizen.tls=true"
db:
image: mariadb:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- ./var/lib/api.star-citizen.wiki/db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
MYSQL_DATABASE:
MYSQL_ROOT_PASSWORD:
MYSQL_USER:
MYSQL_PASSWORD:
networks:
- internal
ofelia:
image:
mcuadros/ofelia:latest
networks:
- internal
depends_on:
- api.star-citizen.wiki
- db
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./docker/ofelia.ini:/etc/ofelia/config.ini:ro
networks:
api.star-citizen.wiki:
external: true
internal: