-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
42 lines (41 loc) · 1 KB
/
docker-compose.dev.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'
services:
postgres:
container_name: postgres_server
image: postgres:alpine
networks:
- app-network
ports:
- 5432:5432
environment:
- POSTGRES_USER=intribox
- POSTGRES_DB=intribox
- POSTGRES_PASSWORD=totalrandompassword
postgres_migration:
container_name: postgres_migration
image: migrate/migrate:latest
restart: on-failure
networks:
- app-network
volumes:
- ./migrations:/migrations
depends_on:
- postgres
command: -source=file:///migrations -verbose -database postgres://intribox:totalrandompassword@postgres:5432/intribox?sslmode=disable up
redis:
container_name: redis_server
image: redis:alpine
ports:
- 6379:6379
localstack: # for s3 testing
container_name: localstack
image: localstack/localstack:latest
ports:
- 4566:4566
environment:
- SERVICES=s3
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
app-network:
driver: bridge