-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 838 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
43
version: "3.4"
services:
# PostgreSQL container
cmspostgres:
image: postgres:11.5-alpine
container_name: cmspostgres
restart: always
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
volumes:
- pgdata:/var/lib/postgresql/data/
# Go application container
app:
build:
context: .
# target: serve
target: dev
container_name: vilna_cms
restart: always
ports:
- "8080:8080"
- "2345:2345"
volumes:
- ./:/go/src/vilnaCMS
depends_on:
- cmspostgres
# Service for tracking containers logs
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9999:8080"
# Volume for storing db data
volumes:
pgdata: