forked from stablecog/sc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (54 loc) · 1.45 KB
/
docker-compose.yaml
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
version: '3.9'
services:
redis:
container_name: pippin_redis
image: redis:6-alpine
restart: unless-stopped
networks: [ 'app-network' ]
db:
container_name: stablecog_go_postgres
image: postgres:14
user: 1000:20
ports:
- '127.0.0.1:53337:5432'
restart: unless-stopped
environment:
- POSTGRES_DB=stablecog_go
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/dev
volumes:
- .data/postgres:/var/lib/postgresql/data:delegated # Delegated indicates the containers view of the volume takes priority
networks: [ 'app-network' ]
rabbitmq:
container_name: stablecog_go_rabbitmq
image: rabbitmq:3.12.6
restart: unless-stopped
ports:
- '127.0.0.1:5672:5672'
networks: [ 'app-network' ]
app:
container_name: stablecog_go_dev
image: appditto/go-vscode-dev:latest
security_opt:
- 'seccomp:unconfined'
environment:
- GOPRIVATE=github.com/stablecog
- PORT=13337
- REDIS_CONNECTION_STRING=redis://redis:6379
- RABBITMQ_AMQP_URL=amqp://guest:guest@rabbitmq:5672/
ports:
- '127.0.0.1:13337:13337'
volumes:
- $PWD:/home/go/app
- $HOME/.gitconfig:/home/go/.gitconfig
- $HOME/.ssh:/home/go/.ssh
restart: on-failure
entrypoint: /bin/zsh
stdin_open: true
tty: true
user: go
networks: [ 'app-network' ]
networks:
app-network:
driver: bridge