-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 983 Bytes
/
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
version: '3.3'
services:
api:
container_name: strapi
restart: unless-stopped
env_file: .env
image: localhost:5000/ham-san-net-api
environment:
JWT_SECRET: ${JWT_SECRET}
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
APP_KEYS: ${APP_KEYS}
NODE_ENV: ${NODE_ENV}
volumes:
- ./.env:/opt/app/.env
- ./public/uploads:/opt/app/public/uploads
- ./data:/opt/app/data
# - ./api/config:/opt/app/config
# - ./api/src:/opt/app/src
ports:
- 1337:1337
command: ['pnpm', 'start']
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- internal-services
client:
container_name: sveltekit
env_file: .env
restart: unless-stopped
image: localhost:5000/ham-san-net-client
environment:
PRIVATE_BACKEND_API_URL: http://api:1337
PORT: 4125
ports:
- 4125:4125
networks:
- internal-services
networks:
internal-services:
external: true