-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.02 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
version: '3.9'
networks:
traefik_savla:
name: ${DOCKER_DEV_NETWORK}
services:
swapp:
image: ${DOCKER_DEV_IMAGE}
container_name: ${DOCKER_DEV_CONTAINER}
build:
context: .
args:
APP_NAME: ${APP_NAME}
APP_FLAGS: ${APP_NAME}
DOCKER_DEV_PORT: ${DOCKER_DEV_PORT}
GOLANG_VERSION: ${GOLANG_VERSION}
TZ: ${TZ}
restart: unless-stopped
#depends_on:
# - db
cpus: 0.5
dns:
- 10.4.5.130
- 1.0.0.2
mem_reservation: 512m
ports:
- "${DOCKER_DEV_EXTERNAL_PORT}:${DOCKER_DEV_PORT}"
networks:
- ${DOCKER_DEV_NETWORK}
labels:
- "traefik.http.routers.${APP_NAME}.rule=Host(${APP_URLS_TRAEFIK})"
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=${DOCKER_DEV_PORT}"
- "traefik.docker.network=${DOCKER_DEV_NETWORK}"
#db:
#docker run -p4001:4001 rqlite/rqlite
#image: rqlite/rqlite
#restart: unless-stopped
#container_name: swapp_db
#networks:
# - ${DOCKER_DEV_NETWORK}