-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (40 loc) · 882 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
42 lines (40 loc) · 882 Bytes
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'
services:
# mongoDB instance
mongodb:
image: mongo
restart: always
container_name: ${DB_NAME}
ports:
- "27017:27017"
volumes:
- /data/mongodb/data/db:/data/db
networks:
aesir_internal_docker_network:
ipv4_address: 192.168.1.77
# golang backend
backend:
build:
context: .
dockerfile: Dockerfile
container_name: aesir_backend
restart: always
ports:
- "8080:8080"
depends_on:
- mongodb
environment:
DB_URL: ${DB_URL}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_ACCESS_FULL_URL: ${DB_ACCESS_FULL_URL}
DOCKER_RUN: true
networks:
aesir_internal_docker_network:
ipv4_address: 192.168.1.100
networks:
aesir_internal_docker_network:
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1