-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.26 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
43
44
45
46
47
48
49
50
51
52
53
services:
db:
image: postgres:latest
container_name: burmese-jewellery-database
volumes:
- ./database/migrations:/docker-entrypoint-initdb.d
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: burmese_jewellery
restart: always
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: root@example.com
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_DEFAULT_SERVER: burmese_jewellery_server
PGADMIN_DEFAULT_SERVER_HOST: db
PGADMIN_DEFAULT_SERVER_PORT: 5432
PGADMIN_DEFAULT_SERVER_MAINTENANCE_DB: burmese_jewellery
PGADMIN_DEFAULT_SERVER_USERNAME: postgres
PGADMIN_DEFAULT_SERVER_PASSWORD: postgres
ports:
- "5050:80"
depends_on:
- db
server:
container_name: burmese-jewellery-server
build:
context: .
dockerfile: ./Dockerfile
env_file:
- .env.local
depends_on:
- db
ports:
- "8077:8077"
restart: on-failure
swagger-ui:
image: swaggerapi/swagger-ui
container_name: swagger-ui
ports:
- "8030:8080"
volumes:
- ./swagger/swagger.yml:/swagger.yml
environment:
SWAGGER_JSON: /swagger.yml