-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.26 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'
networks:
uptime:
driver: bridge
services:
influxdb:
image: influxdb:2.7.1-alpine
container_name: uptime-influxdb
restart: on-failure
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_ADMIN_TOKEN}
expose:
- "${INFLUXDB_PORT}"
networks:
- uptime
api:
container_name: uptime-api
build:
dockerfile: ./deployments/Dockerfile
expose:
- "${APP_PORT}"
networks:
- uptime
env_file:
- .env
configs:
- source: uptime
target: /uptime.toml
- source: env
target: /.env
restart: "on-failure"
web:
container_name: uptime-web
build:
dockerfile: ./website/Dockerfile
ports:
- "8080:80"
networks:
- uptime
depends_on:
- api
configs:
- source: nginx
target: /etc/nginx/conf.d/default.conf
restart: "on-failure"
configs:
uptime:
file: ./uptime.toml
nginx:
file: ./configs/nginx.conf
env:
file: ./.env